{% extends "base.html" %}

{% block content %}
<h2>Upload new track</h2>
<form method="post" action="" enctype="multipart/form-data">
    {% csrf_token %}
    {{ form.non_field_errors }}
    <table>
        <tr>
            <td>{{ form.title.errors }}</td>
        </tr>
    <tr>
        <td>{{ form.title.label_tag }}</td>
        <td>{{ form.title }}</td>
    </tr>
        <tr>
            <td>{{ form.artist.errors }}</td>
        </tr>
    <tr>
        <td>{{ form.artist.label_tag }}</td>
        <td>{{ form.artist }}</td>
    </tr>
        <tr>
            <td>{{ form.album.errors }}</td>
        </tr>
    <tr>
        <td>{{ form.album.label_tag }}</td>
        <td>{{ form.album }}</td>
    </tr>
    <tr>
        <td>{{ form.data.errors }}</td>
    </tr>
    <tr>
        <td>{{ form.data.label_tag }}</td>
        <td>{{ form.data }}</td>
    </tr>
    </table>

    </table>

    <input type="submit" value="Upload" />
</form>
{% endblock %}

